home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11962 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.emf.net!johnm
  2. From: johnm@mitchell.org (John D. Mitchell)
  3. Newsgroups: comp.object,comp.lang.c++,comp.lang.java
  4. Subject: Re: Java: What's the Big Deal?
  5. Date: 17 Mar 1996 09:01:51 GMT
  6. Organization: Mitchell Research
  7. Message-ID: <slrn4knlcc.avu.johnm@mitchell.org>
  8. References: <4i40ik$9dt@news4.digex.net> <milodDo5yDE.H8B@netcom.com> <314B8239.247D@netalive.com>
  9. Reply-To: johnm@mitchell.org
  10. NNTP-Posting-Host: 205.149.2.3
  11. X-Newsreader: slrn (0.8.4)
  12.  
  13. In article <314B8239.247D@netalive.com>, "Erik P. DeBenedictis" wrote:
  14. [...]
  15. >I have another observation on this. Remember how Java's lack of pointer
  16. >is supposed to make it secure? The rationale is that the ability to
  17. >cast an integer into a pointer permits "wild" memory references that could
  18. >be used to do some damage.
  19. >
  20. >They must have been thinking about Windows 3.1 because all other O. S.'s
  21. >protect against wild memory references in other ways.
  22.  
  23. Hmm... You're confusing things.
  24.  
  25. With a 'pointer' you can stomp all over your own 'pages' in e.g., Unix (of
  26. course depending on their protection) with no problems.
  27.  
  28. With a Java 'reference', you cannot legally use that reference to get at
  29. anything other than what you've declared as it's type.  This can be checked
  30. by the runtime 'verifier'.
  31.  
  32. Take care,
  33.     John
  34.  
  35.